package com.aiti.lulian.feign;

import com.aiti.base.core.utils.message.Message;
import com.aiti.lulian.feign.config.Configuration;
import com.aiti.lulian.feign.impl.ShowManageServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

@FeignClient(name = "cloud-show-manage",fallback = ShowManageServiceFallBack.class, configuration = Configuration.class)
public interface ShowManageService {

//    @PostMapping(value = "/enterpriseAuth/addWeChatEnterprise")
//    Message addWeChatEnterprise(@RequestBody Map<String,Object> map);

    @GetMapping(value = "/enterpriseHistory/getUnicodeInfo/{unicode}")
    Message getUnicodeInfo(@PathVariable("unicode")String unicode);

    @PostMapping(value = "/wechatEnterpriseAuth")
    Message addWeChatEnterprise(@RequestBody Map<String,Object> map);

}
